From 703ed608c0be275e8b77ac64d3e9cd51feaa22c4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 13 Jan 2023 11:42:20 -0500 Subject: [PATCH] Fix a compiler warning Clang things that load_error might be NULL here. It may be right. --- gtk/gtkicontheme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index e98240c010..6340186fca 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -3840,7 +3840,7 @@ icon_ensure_texture__locked (GtkIconPaintable *icon, if (!icon->texture) { - g_warning ("Failed to load icon %s: %s", icon->filename, load_error->message); + g_warning ("Failed to load icon %s: %s", icon->filename, load_error ? load_error->message : ""); g_clear_error (&load_error); icon->texture = gdk_texture_new_from_resource (IMAGE_MISSING_RESOURCE_PATH); icon->icon_name = g_strdup ("image-missing"); -- 2.30.2